<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>展示</title>
</head>
<body>
<center>
    <table>
        <tr>
            <td>ID</td>
            <td>用户名</td>
            <td>密码</td>
            <td>操作</td>
        </tr>
        {foreach:items=$res}
        <tr>
            <td>{$item['id']}</td>
            <td>{$item['uname']}</td>
            <td>{$item['pass']}</td>
            <td><a href="{url:test/del/id/$item['id']}">删除</a></td>
        </tr>
        {/foreach}
    </table>
</center>
</body>
</html>